<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Anchang_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-anchang_id" data-rule="required" data-source="anchang/index" class="form-control selectpage" name="row[anchang_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Device_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_id" data-rule="required" data-source="device/index" class="form-control selectpage" name="row[device_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Section')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-section" data-rule="required" class="form-control" name="row[section]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Statistics_datetime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-statistics_datetime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[statistics_datetime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Onlinenum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-onlinenum" class="form-control" name="row[onlinenum]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Onlinemaxduration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-onlinemaxduration" class="form-control" name="row[onlinemaxduration]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Onlineminduration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-onlineminduration" class="form-control" name="row[onlineminduration]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Onlineaverageduration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-onlineaverageduration" class="form-control" name="row[onlineaverageduration]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Offlinenum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-offlinenum" class="form-control" name="row[offlinenum]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Offlinemaxduration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-offlinemaxduration" class="form-control" name="row[offlinemaxduration]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Offlineminduration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-offlineminduration" class="form-control" name="row[offlineminduration]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Offlineaverageduration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-offlineaverageduration" class="form-control" name="row[offlineaverageduration]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
